<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>angular</title>
  </head>
  <body ng-app='App'>
   <div  ng-controller='myCtr'>
      {{name}}
   </div>


  </body>
  <script src="./lib/angular.min.js"></script>
  <script type="text/javascript">
     var App = angular.module('App',[]);
     App.controller('myCtr',['$scope','$http','$log',function($scope,$http,$log){
         $scope.name = 'hello1';
         $http({
           url:'/login',
           method:'post',
           headers:{
             'Content-Type':'application/x-www-form-urlencoded'
           },
           params:{
            //  name:'fangyukui',
            //  age:12
           },
           data:{
             name:'yu-vin',
             age:20

           }
         }).success(function(info){
           $log.info(info);

         });

     }]);



  </script>
</html>
